package org.walkerljl.commons.standard;

import org.walkerljl.commons.exception.AppException;

/**
 * Describe one kind of resource which can init and destroy
 *
 * @author: lijunlin
 */
public interface Resource extends Identifer {

    /**
     * Init
     *
     * @throws AppException
     */
    void init() throws AppException;

    /**
     * Destroy
     */
    void destroy();

    /**
     * Get instance id
     * @return
     */
    String getInstanceId();
}
